%% 这是WOD剖面与eddy匹配类TSprofileMatchEddyClass构建的function
load('AE_EDC_1.mat','EDC')
AEEDC = EDC;
load('CE_EDC_1.mat','EDC')
CEEDC = EDC;
load('WODTSprofile.mat','TSprofile')
eddyArray = EddyDatasetClass.eddyArrayAddByDict([], AEEDC.Dict, -1);
eddyArray = EddyDatasetClass.eddyArrayAddByDict(eddyArray, CEEDC.Dict, 1);


TSMEC = TSprofileMatchEddyClass(TSprofile,eddyArray);
TSMEC.profileMatchEddy_simple();%这一步用于匹配并储存相对坐标
TSMEC.TSprofile.profile_measure();%这一部用于计算剖面的各类海洋参数垂向分布，例如位温 位势密度等
save('WODTSMEC.mat',"TSMEC");
